package io.renren.common.weixin;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

/**
 * Created by whc on 2015/10/29.
 */
public class WxMpGsonBuilder {

    public static final GsonBuilder INSTANCE = new GsonBuilder();

    static {
        INSTANCE.disableHtmlEscaping();
        INSTANCE.registerTypeAdapter(WxMpTemplateMessage.class, new WxMpTemplateMessageGsonAdapter());
    }

    public static Gson create() {
        return INSTANCE.create();
    }

}